<?php
$pdo = new PDO("mysql:host=localhost;dbname=que","root","root");
$re=$pdo->query("set names utf8");
$sql2="insert into que(title)value('sdsds')";
$re=$pdo->exec($sql2);
if ($re) {
	echo 'ok';
	# code...
}else{
	echo 'no';
}

